<?php

namespace app\serversubmitform\service\submitform;
use \app\manage\service\ApiBase;

/**
 * @author:      李颖
 * @DateTime:    2017-09-04 13:59:12
 * @Description: 提交表单 - 意见建议
 */

class Submitform extends ApiBase
{
	
	protected $submitformLogic = 'app\serversubmitform\logic\Submitform';
    protected $submitformValidate = 'app\serversubmitform\validate\Submitform';

    use \app\serveruser\traits\AddAppIdToRunOne;

    /*后台 - 获取意见建议列表*/
    public function getSuggestionList(): array 
    {
        $data = $this->haveIssetReceiveData(['page'=>1,'listRows'=>15,'token'=>' ','keywords'=>'']);
        return $this->_addAppIdToRunOne($data, 'serversubmitform/submitform/Submitform/getSuggestionList', $this->submitformValidate, $this->submitformLogic);
    }

    /*后台 - 将某个建议标记为已读*/
    public function remarkRead(): array 
    {
        $data = $this->haveIssetReceiveData(['id'=>0, 'token'=>' ']);
        return $this->oneStepRun($data, 'serversubmitform/submitform/Submitform/remarkRead', '', '1', $this->submitformValidate, $this->submitformLogic);
    }

    
}






